import tensorflow as tf

a = tf.fill([2, 2], 2.)
b = tf.ones([2, 2])

print(a)
print(b)

print(a + b)
print(a - b)
print(a * b)
print(b / a)
print(a // b)
print(a % b)

print(tf.math.log(16.) / tf.math.log(2.))

print(a @ b)
print(tf.matmul(a, b))

a = tf.ones([4, 2, 6])
b = tf.fill([4, 6, 3], 2.)
print(a @ b)
print(tf.matmul(a, b))
